package com.epfly.base.ex;

public enum PromoMessageEnum implements Message {


    ERR_40000("bad request !!!ERR_40000"),
    ERR_40001("bad request !!!ERR_40001"),
    ERR_40002("bad request !!!ERR_40002"),

    ERR_40003("bad request !!!ERR_40003"),
    ERR_40004("bad request !!!ERR_40004"),

    ERR_40005("bad request !!!ERR_40005"),

    ERR_430001(430001, "优惠方式为菜品分类折扣，菜品分类不能为空"),
    ERR_430002(430002, "优惠方式为菜品折扣，菜品ID不能为空"),
    ERR_430003(430003, "优惠方式为特价菜，菜品ID不能为空"),
    ERR_430004(430004, "活动开始时间不能大于活动结束时间"),
    ERR_430005(430005,"活动对象类型为员工时，级联选项不能为空"),
    ERR_430006(430006, "部门不能为空"),
    ERR_430007(430007, "职位不能为空"),
    ERR_430008(430008,"指定档口不能为空"),
    ERR_430009(430009,"活动不存在"),
    ERR_430010(430010,"活动ID不能为空"),
    ERR_430011(430011,"活动不存在"),
    ERR_430012(430012,"活动ID不能为空"),
    ERR_430013(430013,"活动不存在"),
    ERR_430014(430014,"修改人不能为空"),
    ERR_430015(430015, "活动不存在"),
    ERR_430016(430016, "档口:%s，已经绑定%d个活动(%s)，达到最大限制"),
    ERR_430017(430017, "非待生效不能修改"),
    ERR_430018(430018, "前置未执行"),
    ERR_430019(430019,"接口未开放远程调用"),
    ERR_430020(430020,""),
    ERR_430021(430021,""),
    ERR_430022(430022, ""),


    ;

    PromoMessageEnum() {

    }

    PromoMessageEnum(String errMsg) {
        this.errMsg = errMsg;
    }

    PromoMessageEnum(int errCode, String errMsg) {
        this.errCode = errCode;
        this.errMsg = errMsg;
    }

    private int errCode;

    private String errMsg;


    @Override
    public int getErrCode() {
        return errCode;
    }

    @Override
    public String getErrMsg() {
        return errMsg;
    }
}
